import { axios } from '@/utils/request'

export function getSysParkManageRangeList(params) {
  return axios({
    url: '/sys/area/pageQueryManagementArea',
    method: 'get',
    params
  })
}
export function getSysParkManageRangeAdd(parameter) {
  return axios({
    url: '/sys/area/add',
    method: 'post',
    data:parameter
  })
}
export function getSysParkManageRangeEnable(parameter) {
  return axios({
    url: '/sys/area/disOrEnable',
    method: 'post',
    data:parameter
  })
}
export function getSysParkIdRange(parkId) {
     parkId = parkId !== undefined ? parkId : '';
  return axios({
    url: `/sys/area/queryManagementArea?parkId=${parkId}`,
    method: 'get'
  })
}
